package org.coder80.admin.user.service;


import java.util.List;

import org.coder80.admin.user.dao.UserDao;
import org.coder80.admin.user.model.User;
import org.framework.dao.BaseDao;
import org.framework.service.BaseService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


@Service("userService")
public class UserService extends BaseService<User> {

	@Autowired
	private UserDao userDaoImpl;

	@Override
	public BaseDao<User> getBaseDao() {
		return userDaoImpl;
	}

	public void add(List<User> list) {
		for (User user : list) {
			create(user);
		}
	}
}
